import sys
sys.path.append("..")

from ParserZS import ParserZS
from ParserZFB import ParserZFB
from ParserWX import ParserWX
from CategoryHandler import CategoryHandler
from MySQLGenerator import MySQLGenerator
from Config import *

if __name__ == "__main__":
    #parserZS = ParserZS(Owner.Ed)
    #parserZS.Parse("../src/zs", "output_zs.csv")

    #parserZFB = ParserZFB(Owner.Ed)
    #parserZFB.Parse("../src/zfb", "output_zfb.csv")

    #parserWX = ParserWX(Owner.Ed)
    #parserWX.Parse("../src/wx", "output_wx.csv")

    #categoryHandler = CategoryHandler()
    #categoryHandler.ExtendPairs("output_fix.csv")

    generatorWX = MySQLGenerator()
    generatorWX.Generate("output_wx_fix.csv", "mysql_wx.mysql")

    generatorZFB = MySQLGenerator()
    generatorZFB.Generate("output_zfb_fix.csv", "mysql_zfb.mysql")

    generatorZS = MySQLGenerator()
    generatorZS.Generate("output_zs_fix.csv", "mysql_zs.mysql")
